const express = require('express');
const router = new express.Router();

/**
 * @param {Object} options
 * @throws {Error}
 * @return {Promise}
 */
router.get('/', async(req, res, next) => {
    const options = {
    };
    const data = {
        message: 'message',
        payload: {
            content: [
                {
                    id: 'id1',
                    code: 'code2',
                    name: 'name3'
                },
                {
                    id: 'id4',
                    code: 'code5',
                    name: 'name6'
                }
            ]
        }
    };
    res.json(data);
});

router.get('/forSubDealer', async(req, res, next) => {
    const options = {
    };
    const data = {
        message: 'message',
        payload: {
            content: [
                {
                    id: 'id1',
                    code: 'code2',
                    name: 'name3'
                },
                {
                    id: 'id4',
                    code: 'code5',
                    name: 'name6'
                }
            ]
        }
    };
    res.json(data);
});
module.exports = router;
